import { createRouter, createWebHashHistory } from "vue-router";

const routes =[
    {
        path: '/',
        name: 'index',
        component: () => import('@/views/index.vue'),
        meta: {
            title: "理型公园"
        }
    },
    {
        path: '/qrcode/:id',
        name: 'qrcode',
        component: () => import('@/views/qrcode/index.vue'),
        meta: {
            title: "理型公园"
        }
    },
    {
        path: '/:catchAll(.*)',
        name: '404',
        component: () => import('@/views/error/404.vue'),
        meta: {
            title: "404"
        }
    }
]


const router = createRouter({
    history: createWebHashHistory(),
    routes
})

// 导出
export { router }